// 精简版 ECharts 按需引入，仅注册当前使用到的折线图、提示框、图例、网格、数据集与 Canvas 渲染器
import { use } from 'echarts/core'
import { LineChart } from 'echarts/charts'
import { GridComponent, TooltipComponent, LegendComponent, DatasetComponent } from 'echarts/components'
import { CanvasRenderer } from 'echarts/renderers'

use([
  LineChart,
  GridComponent,
  TooltipComponent,
  LegendComponent,
  DatasetComponent,
  CanvasRenderer
])

// 外部仍可 import * as echarts from 'echarts'，但推荐：import { echarts } from '@/utils/echarts-lite'
export * as echarts from 'echarts'
